package xyz.zdsoft.project_group_manage_module.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 杜飘
 * @since 2021-07-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Leave对象", description="")
public class Leave implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "请假开始时间")
    private LocalDateTime startLeaveTime;

    @ApiModelProperty(value = "请假结束时间")
    private LocalDateTime endLeaveTime;

    @ApiModelProperty(value = "审批状态:默认：0（审批中），1（审批不通过），2（审批通过）")
    private Integer status;

    @ApiModelProperty(value = "提交时间")
    private LocalDateTime submitTime;

    @ApiModelProperty(value = "学生id")
    private Integer studentId;

    @ApiModelProperty(value = "请假类型:0：病假；1:事假；2：其他")
    private Integer leaveType;

    @ApiModelProperty(value = "主题")
    private String theme;

    @ApiModelProperty(value = "请假原因")
    private String reason;


}
